/**
 * 
 */
package com.jie.eclipse.pan.gef.listener;

import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.SelectionChangedEvent;

import com.jie.eclipse.pan.views.PanDeveloperhelperView;

/**
 * @author yanjie
 *
 */
public class PanHelperSelectionChangedListener implements ISelectionChangedListener{
	private PanDeveloperhelperView developerhelperView = null;
	/**
	 * 
	 */
	public PanHelperSelectionChangedListener(PanDeveloperhelperView developerhelperView) {
		this.developerhelperView = developerhelperView;
	}
	
	
	public void selectionChanged(SelectionChangedEvent paramSelectionChangedEvent) {
		this.developerhelperView.setSelectEntry(this.developerhelperView.getEntryFromSelection(paramSelectionChangedEvent.getSelection()));
	}

}
